<?php

namespace App\Models\Sentence;

use App\Models\Category\Category;
use App\Models\Data\ClickLearn;
use Illuminate\Database\Eloquent\Model;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Relations;

class Sentence extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'often_expressions';
    protected $fillable = ['category_id', 'click_learn_id'];

    public function category(): Relations\BelongsTo
    {
        return $this->belongsTo(Category::class);
    }

    public function click_learn(): Relations\BelongsTo
    {
        return $this->belongsTo(ClickLearn::class);
    }
}
